Skip to content

Rewrite: Provide not only the database layer, but a website as well #1

@TacoConKvass

Description

@TacoConKvass

Description

This data made available through this project is currently being queried by https://rl2-api.org /mods and /mod?name= routes, using SolidJS for our frontend. However, I am not happy with it's current implementation, and feel like it could be better to use SSR to return the page from this service.

Details

Service restructuring

Current structure of the service routes:

route response
/ Nothing
/api Endpoint help
/api/mod-list Mod list JSON
/api/mod/{name} Mod data JSON
`/run-sync/{key} Redirect

New structure of the service routes

route response
/ Mod list HTML
/search?name= Mod list HTML with a filter applied
/mod?name= Specific mod page
/api Endpoint help
/api/mod-list Mod list JSON
/api/mod/{name} Mod data JSON
/run-sync/{key} 403 or 200

Possible technologies/libraries/crates to use

  • Leptos (SSR, eventual client side interactions)
  • Rocket (server side work? db sync?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions