Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
teknikattan-scoring-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tddd96-grupp1
teknikattan-scoring-system
Merge requests
!95
Resolve "Documentation for redux"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Documentation for redux"
89-documentation-for-redux
into
dev
Overview
0
Commits
2
Pipelines
1
Changes
11
Merged
Albin Henriksson
requested to merge
89-documentation-for-redux
into
dev
3 years ago
Overview
0
Commits
2
Pipelines
1
Changes
11
Expand
Closes
#89 (closed)
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
530b6cf0
2 commits,
3 years ago
11 files
+
61
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
client/src/actions/cities.ts
+
5
−
0
Options
/*
This file handles actions for the cities redux state
*/
import
axios
from
'
axios
'
import
{
AppDispatch
}
from
'
./../store
'
import
Types
from
'
./types
'
// Action creator to get all cities from api and send appropriate actions to reducer
export
const
getCities
=
()
=>
async
(
dispatch
:
AppDispatch
)
=>
{
await
axios
.
get
(
'
/api/misc/cities
'
)
Loading