All Downloads are FREE. Search and download functionalities are using the official Maven repository.

re.play-app.0.5.source-code.routes Maven / Gradle / Ivy

# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~

# Pages
GET         /                                         @controllers.Application.index()
GET         /list                                     @controllers.Application.list(limit : Int = 50, page : Int = 1)
GET         /list/$limit<[0-9]+>/$page<[0-9]+>        @controllers.Application.list(limit : Int, page : Int)
GET         /search                                   @controllers.Application.search(request : String)
GET         /pcm/:id                                  @controllers.Application.edit(id : String)
GET         /create                                   @controllers.Application.create()
GET         /import/:ext                              @controllers.Application.importer(ext : String)
GET         /embedPCM/:id                             @controllers.Application.embedPCM(id : String)
GET         /embed                                    @controllers.Application.embed()
GET         /about/project                            @controllers.Application.aboutProject()
GET         /about/privacy                            @controllers.Application.aboutPrivacyPolicy()

# API
GET         /api/get/:id                              @controllers.PCMAPI.get(id : String)
POST        /api/save/:id                             @controllers.PCMAPI.save(id : String)
POST        /api/create                               @controllers.PCMAPI.create()
GET         /api/remove/:id                           @controllers.PCMAPI.remove(id : String)
POST        /api/extract-content                      @controllers.PCMAPI.extractContent()

# I18n
GET         /api/i18n/:language                       @controllers.I18nCtrl.setLang(language : String)
GET         /api/i18n                                 @controllers.I18nCtrl.i18n()

# CSV import/export
POST        /api/import/csv                           @controllers.CSVCtrl.importPCMsAction()
POST        /api/export/csv                           @controllers.CSVCtrl.exportPCMAction()

# Wikipedia import/export
POST        /api/import/wikipedia                     @controllers.WikipediaCtrl.importPCMsAction()
POST        /api/export/wikitext                      @controllers.WikipediaCtrl.exportPCMAction()

# HTML import/export
POST        /api/import/html                          @controllers.HTMLCtrl.importPCMsAction()
POST        /api/export/html                          @controllers.HTMLCtrl.exportPCMAction()
POST        /api/embedFromHtml                        @controllers.HTMLCtrl.embedFromHTML()

# Map static resources from the /public folder to the /assets URL path
GET         /assets/*file                             controllers.Assets.at(path="/public", file)
GET         /webjars/*file                            controllers.WebJarAssets.at(file)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy