a-jaxell / guidernas-guide

This is an app for planning outdoor activities for businesses in the outdoor industry.
0 stars 0 forks source link

Issue19 server actions #23

Closed a-jaxell closed 9 months ago

a-jaxell commented 9 months ago

Changed API methods into server methods and fixed the enum values of ActivityType and ActivityForm being set as all caps before POST to synergize with enums being parsed correctly in JAVA.

Example:

{Object.values(ActivityFormat).map((format) => {
                  return <option key={format} value={format.toUpperCase()}>{format}</option>
                })}
 string "CLASS" - parses into - > enum ActivityFormat.CLASS

resolves #19